var vm = new Vue({
    el: "#app",
    data: {
        userName: "",  //用户名
        passwordInfo: "" , //密码 
        loginInfo: [

        ]
    },
    methods: {
        login() {
            var obj = { user: this.userName, password: this.passwordInfo }
            this.loginInfo.push(obj);
            console.log(this.loginInfo);

        }
    }
})